<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">上传用户:</label>
        <div class="col-xs-12 col-sm-8" style="padding-top: 7px;">
            <p style="margin-bottom: 15px;">
                {$row.user.username|htmlentities}
            </p>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">店铺名称:</label>
        <div class="col-xs-12 col-sm-8" style="padding-top: 7px;">
            <p style="margin-bottom: 15px;">
                {$row.shop.shopname|htmlentities}
            </p>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">票据价格:</label>
        <div class="col-xs-12 col-sm-8" style="padding-top: 7px;">
            <p style="margin-bottom: 15px;">
                {$row.price|htmlentities}
            </p>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">票据图片:</label>
        <div class="col-xs-12 col-sm-8" style="padding-top: 7px;">
            <p style="margin-bottom: 15px;">
                <img src="{$row.img}" alt="" data-tips-image  width="100px" height="100px" style="margin: 2px">
            </p>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">提交时间:</label>
        <div class="col-xs-12 col-sm-8" style="padding-top: 7px;">
            <p style="margin-bottom: 15px;">
                {$row.createtime_text|htmlentities}
            </p>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('审核')}:</label>
        <div class="col-xs-12 col-sm-8" style="padding-top: 7px;">
            {if condition="$row.sh == 0"}
            <label style="margin-right: 15px;cursor: pointer;">
                <input type="radio" name="row[sh]" id="optionsRadios0" value="0" {if $row['sh'] == 0}checked{/if}>
                审核中
            </label>
            <label style="margin-right: 15px;cursor: pointer;">
                <input type="radio" name="row[sh]" id="optionsRadios1" value="1" {if $row['sh'] == 1}checked{/if}>
                审核通过
            </label>
            <label style="margin-right: 15px;cursor: pointer;">
                <input type="radio" name="row[sh]" id="optionsRadios2" value="2" {if $row['sh'] == 2}checked{/if}>
                审核驳回
            </label>
            {else/}
            <label style="margin-right: 15px;cursor: pointer;">
                {$row.status_text}
            </label>
            {/if}
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">拒绝理由:</label>
        <textarea name="row[reason]" id="rejectReason" cols="60" rows="5"></textarea>
    </div>

    {if condition="$row.sh == 0"}
    <input type="hidden" name="id" value="{$row.id}">
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
    {/if}
</form>
